package d1_com.itheima.thread;

public class Test2 {
    public static void main(String[] args) {
        MyRunnable r = new MyRunnable();
        new Thread(r).start();
        new Thread(() -> {
            for (int i = 0; i < 5; i++) {
                System.out.println("子线程2Runnable输出" + i);
            }
        }).start();
        for (int i = 0; i < 5; i++) {
            System.out.println("子线程3Runnable输出" + i);
        }
    }
}
